<div class="list">
    <table>
        <thead>
            <tr>
                <g:sortableColumn property="id" title="Id" titleKey="stockIn.id" />
                <g:sortableColumn property="serialNumber" title="Serial Number" titleKey="stockIn.serialNumber" />
                <th><g:message code="stockIn.recordType" default="Record Type" /></th>
                <th><g:message code="stockIn.purchase" default="Purchase" /></th>
                <th><g:message code="stockIn.dealer" default="Dealer" /></th>
                <g:sortableColumn property="date" title="Date" titleKey="stockIn.date" />
            </tr>
        </thead>
        <tbody>
        <g:each in="${stockInInstanceList}" status="i" var="stockInInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td><g:link action="show" id="${stockInInstance.id}">${fieldValue(bean: stockInInstance, field: "id")}</g:link></td>
                <td><g:link action="show" id="${stockInInstance.id}">${fieldValue(bean: stockInInstance, field: "serialNumber")}</g:link></td>
                <td><g:link action="show" id="${stockInInstance.id}">${fieldValue(bean: stockInInstance, field: "recordType")}</g:link></td>
                <td><g:link action="show" id="${stockInInstance.id}">${fieldValue(bean: stockInInstance, field: "purchase")}</g:link></td>
                <td><g:link action="show" id="${stockInInstance.id}">${fieldValue(bean: stockInInstance, field: "dealer")}</g:link></td>
                <td><g:formatDate date="${stockInInstance.date}" /></td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
